package com.fhsk.file.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fhsk.file.business.entity.bo.attachment.AttachmentBo;
import com.fhsk.file.business.entity.bo.attachment.AttachmentConditionBo;
import com.fhsk.file.business.entity.dto.attachment.AttachmentDto;
import com.fhsk.file.business.entity.vo.attachment.AttachmentVo;
import com.fhsk.file.common.vo.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 附件表接口
 */
public interface IAttachmentService extends IService<AttachmentDto> {

    Map<String, Object> getAttachmentListByCondition(AttachmentConditionBo condition);

    AjaxResult addAttachment(AttachmentBo attachmentBo);

    AjaxResult updateAttachment(AttachmentBo attachmentBo);

    AttachmentVo getDetail(String fileOid);

    AjaxResult upload(MultipartFile file, MultipartFile img, AttachmentBo attachmentBo) throws Exception;
}